Optimal Incremental Simple Multi-Pass Attribute Evaluation

نویسنده

  • Henk Alblas
چکیده

Compiler optimizations can be described by tree transformations that replace complicated and non-efficient tree structures by equivalent but simpler and more efficient tree structures. For the specification of such tree transformations the classical attribute grammar framework has to be extended with conditional tree transformation rules, where predicates on attribute values (carrying context information (may enable the application of a transformation (see e.g. [ll]). A tree transformation may invalidate attribute instances, not only in the restructured part of the tree but also elsewhere in the tree. To make the attribution of a derivation tree correct again (which is generally needed in order to be able to test the predicates of subsequent tree transformations), a re-evaluation of the entire tree could be applied. However, a repeated computation of all the attribute instances after each transformation is inefficient and should be avoided (cf. [7,9,10,12]). In this paper an incremental simple multi-pass evaluator is presented, which works optimally in the number of visits to tree nodes and the number of recomputations. By optimal we mean that, whenever possible, subtrees are skipped, and no unnecessary calculations are done. Optimization of the non-incremental simple multi-pass attribute evaluator by skipping subtrees is discussed in IS].

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Incremental Attribute Evaluation of LR - attributedgrammars Using Space - E cient Data

Incremental attribute evaluation of one-pass attribute grammars (AGs) has not yet been fully investigated. However, considering the lightness of one-pass AGs, combining incremental evaluation and parsing in one-pass AGs may bring about a time-and space-eecient language processor. In this paper, an incremental attribute evaluation method based on LR-attributed grammar, a class of one-pass attrib...

متن کامل

Yet Another Attribute Evaluator based on Recursive Functions

In this paper we present an approach to attribute evaluation based on recursive neighbour functions , which is different from what has been reported in the literature. The approach is valid for simple multi-visit attribute grammars. Neighbour functions, comprising of visit and suspend functions , allow attribute evaluation to start at the node of subtree replacement, and the approach can readil...

متن کامل

Incremental Evaluation of Ordered Attribute Grammars for Asynchronous Subtree Replacements

Incremental algorithms for evaluating attribute grammars (AGs) have been extensively studied in recent years, primarily because of their application in language-based environments. Ordered attribute grammars are a subclass of AGs for which efficient evaluators can be constructed. Previous incremental algorithms for ordered attribute grammars only allowed one modification 10 the program at a tim...

متن کامل

Comparison of Shariati hospital performance in Tehran before and after the health system transformation plan using a dynamic multi-attribute decision-making method

Abstract: Background: Iranian Health system Transformation plan has been implemented since 2014 with the aim of financial protection of people, equity establishment in access to health services and quality improvement of hospital services. Hospital performance evaluation is essential in order to monitor the health system transformation plan. One of the tools for evaluating hospital performance...

متن کامل

A DEA-bases Approach for Multi-objective Design of Attribute Acceptance Sampling Plans

Acceptance sampling (AS), as one of the main fields of statistical quality control (SQC),involves a system of principles and methods to make decisions about accepting or rejecting alot or sample. For attributes, the design of a single AS plan generally requires determination ofsample size, and acceptance number. Numerous approaches have been developed foroptimally selection of design parameters...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • Inf. Process. Lett.

دوره 32  شماره 

صفحات  -

تاریخ انتشار 1989